<template>
    <div class="header">
      <div class="header-left">
        <div class="iconfont icon-back"></div>
      </div>
      <div class="header-input">
        <span class="iconfont icon-search"></span>
        <span class="placeholder">输入城市、景点、旅游路线</span>
      </div>
      <div class="header-right">
        <router-link to="/city">
          <span>{{this.$store.state.city}}</span>
          <span class="arrow-down iconfont icon-arrow-down"></span>
        </router-link>
      </div>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style lang="stylus" scoped>
  @import '~@/assets/styles/varibles.styl'
  .header
    display: flex
    align-items center
    height: $headerHeight
    color: #fff
    background: $bgColor
    .header-left
      display : flex
      align-items : center
      justify-content : center
      width: .64rem
      font-size: .4rem
    .header-input
      flex-grow: 1
      display: flex
      align-items: center;
      height: .64rem
      padding-left: .1rem
      margin-left: .2rem
      color: #ccc
      background: #fff
      border-radius: .1rem
      .placeholder
        margin-left: .1rem
    .header-right
      min-width: 1.04rem
      padding: 0 .1rem
      text-align: center
      a
        color #fff
      .arrow-down
        font-size: .24rem
        margin-left .04rem
</style>
